﻿<?xml version="1.0" encoding="utf-8"?>
<component version="1.0" xmlns="http://schemas.circuit-diagram.org/circuitDiagramDocument/2012/component/xml">
  <declaration>
    <meta name="name" value="Meter" />
    <meta name="minsize" value="30" />
    <meta name="author" value="Circuit Diagram" />
    <meta name="additionalinformation" value="http://www.circuit-diagram.org/" />
    <meta name="guid" value="28fb647b-35f6-45ca-b500-c89d542d4d4b" />
    <meta name="implementset" value="http://schemas.circuit-diagram.org/circuitDiagramDocument/2012/components/common" />

    <property name="Type" type="enum" default="Voltmeter" serialize="t" display="Type">
      <option>Voltmeter</option>
      <option>Ammeter</option>
    </property>

    <configurations>
      <configuration name="Voltmeter" value="Type:Voltmeter" implements="voltmeter" />
      <configuration name="Ammeter" value="Type:Ammeter" implements="ammeter" />
    </configurations>
  </declaration>
  <connections>
    <group conditions="_Horizontal">
      <connection name="a" start="_Start" end="_Middle-13x" edge="Start" />
      <connection name="b" start="_Middle+13x" end="_End" edge="End" />
    </group>
    <group conditions="!_Horizontal">
      <connection name="a" start="_Start" end="_Middle-13y" edge="Start" />
      <connection name="b" start="_Middle+13y" end="_End" edge="End" />
    </group>
  </connections>
  <render>
    <!-- Commmon -->
    <group conditions="_Horizontal">
      <line start="_Start" end="_Middle-13x" />
      <line start="_Middle+13x" end="_End" />
    </group>
    <group conditions="!_Horizontal">
      <line start="_Start" end="_Middle-13y" />
      <line start="_Middle+13y" end="_End" />
    </group>
    <group>
      <ellipse x="_Middle" y="_Middle" radiusx="12" radiusy="12" />
    </group>
    
    <!-- Voltmeter -->
    <group conditions="$Type(eq_Voltmeter)">
      <text x="_Middle" y="_Middle" value="V" align="CentreCentre" size="large" />
    </group>

    <!-- Ammeter -->
    <group conditions="$Type(eq_Ammeter)">
      <text x="_Middle" y="_Middle" value="A" align="CentreCentre" size="large" />
    </group>
  </render>
</component>